<?php
if(!isset($GLOBALS['_vars'])) $GLOBALS['_vars'] = array(); 
$fields = array();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>幻灯片管理</title>
<link href='css/base.css' rel='stylesheet' type='text/css'>
</head>
<body background='images/allbg.gif' leftmargin='8' topmargin='8'>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6">
	<tr>
		<td height="28" background="images/tbg.gif" style="padding-left:10px;" colspan="8"> 
			<b>幻灯片管理</b>&nbsp;
			[<a href="flash_add.php"><u>添加幻灯片图片</u></a>]
			[<a href="flash_type.php"><u>增加幻灯片组</u></a>]
		</td>
	</tr>
	<tr align="center" bgcolor="#F9FCEF" height="24"> 
		<td width="5%">幻灯排序</td>
		<td width="15%">幻灯片组 / id</td>
		<td width="10%">幻灯标题</td>
		<td width="30%">图片地址</td>
		<td width="30%">图片链接</td>
		<td width="10%">管理</td>
	</tr>
	<?php
$atts = array();
$atts['tagname'] = 'datalist';
$blockValue = $this->refObj->GetArcList($atts,$this->refObj,$fields); 
if(is_array($blockValue)){
foreach( $blockValue as $key=>$fields )
{
?>
    <tr align="center" class="bgcolor<?php echo $fields['typeid']; ?>" height="24" onMouseMove="javascript:this.className='bgcolor';" onMouseOut="javascript:this.className='bgcolor<?php echo $fields['typeid']; ?>';"> 
		<td><?php echo $fields['sortrank']; ?></td>
		<td><a href="?tid=<?php echo $fields['typeid']; ?>"><?php echo GetFlashTypeName($fields['typeid']); ?> ( <?php echo $fields['typeid']; ?> )</a></td>
		<td><?php echo $fields['title']; ?></td>
		<td><img src='<?php if($fields['litpic']!="") echo $fields['litpic']; else echo "images/pview.gif";?>' width='88' height='31' border='0'></td>
		<td><?php echo $fields['arcurl']; ?></td>
		<td>
			<a href='flash_edit.php?id=<?php echo $fields['id']; ?>'>[更改]</a>
			<a href='flash_edit.php?id=<?php echo $fields['id']; ?>&dopost=delete'>[删除]</a>
		</td>
	</tr>
	<?php
}
}?>
	<tr align="center" bgcolor="#F9FCEF" height="24"> 
		<td colspan="7">
			<?php
$atts = array();
$atts['tagname'] = 'pagelist';
$atts['listsize'] = '5';
 echo $this->refObj->GetPageList($atts,$this->refObj,$fields); 
?>

		</td>
	</tr>
</table>
<style>
.bgcolor{background:#f4fbf4;}
.bgcolor0{background:#f4fbf4;}
.bgcolor1{background:#F0F5F9;}
.bgcolor2{background:#F5EEDC;}
.bgcolor3{background:#6A99CD;}
.bgcolor4{background:#FDF6EC;}
.bgcolor5{background:#F2F2F2;}
.bgcolor6{background:#F8EFF0;}
.bgcolor7{background:#FFF6F7;}
.bgcolor8{background:#FFEDED;}
.bgcolor9{background:#FFEDED;}
.bgcolor10{background:#FFF7F8;}
.bgcolor11{background:#FFF7F8;}
.bgcolor12{background:#F8EFDE;}
.bgcolor13{background:#F8F8F8;}
.bgcolor14{background:#FAF6D1;}
</style>
</body>
</html>